const pako = require('pako');

const input = '码农研究僧';
const compressed = pako.gzip(input);  // 使用 pako.gzip 进行压缩
console.log('Compressed:', compressed);

const decompressed = pako.ungzip(compressed, { to: 'string' });  // 解压缩
console.log('Decompressed:', decompressed);
